package com.ganyu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ganyu.domain.entity.Link;
import com.ganyu.domain.vo.AdminAddLinkVo;
import com.ganyu.domain.vo.AdminLinkVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * DATA: 2022/8/30
 * Author: 晨夕
 */
@Mapper
public interface LinkMapper extends BaseMapper<Link> {
    //获取分页
    List<AdminLinkVo> getLinkList(@Param("pageNum") Integer pageNum,@Param("pageSize") Integer pageSize, @Param("name")String name, @Param("status")String status);
    //获取个数
    int getCount(@Param("name")String name,@Param("status") String status);
    //添加友链
    void insertLink(AdminAddLinkVo adminAddLinkVo);
    //修改友链
    void updateLink(AdminLinkVo adminLinkVo);
    //删除友链
    void deleteLinkById(@Param("ids") Long[] ids);
}
